package myclass;

import java.beans.PropertyVetoException;
import javax.swing.JInternalFrame;

public abstract class MyInterFrame extends JInternalFrame {
    
    public MyInterFrame(){
        super();
        this.setDefaultCloseOperation(HIDE_ON_CLOSE);
    }
    
    public void ShowWithMaximunSize() throws PropertyVetoException{        
        this.setVisible(true);
        this.moveToFront();
        this.setMaximum(true);
    }
    
}
